<%--
  Created by IntelliJ IDEA.
  User: zarra
  Date: 14-2-6
  Time: 下午8:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>CFindTest</title>
    <c:url var="jquery_min_js" value="/static/jquery-2.1.0.min.js"></c:url>
    <c:url var="cfind" value="/cfind/"></c:url>
    <script type="text/javascript" src="${jquery_min_js}"></script>
    <script type="text/javascript">

        var rawCFind = function(dataset,handler){
            $.ajax({
                type:'POST',
                url: '${cfind}',
                contentType: 'application/json',
                data:  JSON.stringify(dataset),
                dataType: 'json',
                processData: false
            }).done(function(data) {handler(data);});
        }

        $(document).ready(
          function(){
                rawCFind({PatientID:null,PatientName:null,PatientSex:null,PatientBirthDate:null,
                          StudyDate:'20140202'
                        }
                        ,function(data){console.log(data);}
                );
          });
    </script>
</head>
<body>

</body>
</html>
